Improve test for posixicity
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 15 Aug 2002 06:14:18 +0000 (06:14 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 15 Aug 2002 06:14:18 +0000 (06:14 +0000)
gpsbabel/magproto.c

index 0160fb2d6234eb9f0bff024249bc4da7c68eb6df..2fc47d7244eeb9a1b00d91ba6d2dba3e7140a73b 100644 (file)
@@ -294,7 +294,21 @@ return;
        mag_writeack(isum);
 }
 
-#if _POSIX_SOURCE
+#if __WIN32__
+static
+void
+terminit()
+{
+}
+
+static
+void
+termdeinit()
+{
+}
+
+#else
+
 #include <termios.h>
 static struct termios orig_tio;
 static void
@@ -324,20 +338,6 @@ termdeinit()
 }
 #endif
 
-#if __WIN32__
-static
-void
-terminit()
-{
-}
-
-static
-void
-termdeinit()
-{
-}
-#endif
-
 
 static void
 mag_rd_init(const char *portname)